package com.example.strategy;

public class StrategyFactory {
    public static Strategy getStrategy(StrategyEnum strategyEnum) {
        switch (strategyEnum) {
            case STRATEGY_A:
                return new ConcreteStrategyA();
            case STRATEGY_B:
                return new ConcreteStrategyB();
            default:
                return null;
        }
    }
}
